package org.csu.mypetstore.tools;

import org.springframework.util.DigestUtils;

public class MD5 {
    final private static String key = "ForOurBestTeacherSongTieGieGie";
    public static String getMD5(String str) {
        String base = str +"/"+key;
        String md5 = DigestUtils.md5DigestAsHex(base.getBytes());

        return md5;
    }
}
